<script type="text/javascript">
function checkSearch(){
	var txtsearch = document.frmsearch.txtsearch.value;
	if(txtsearch == "" || txtsearch == null){
		alert("Please input text to search");
		document.frmsearch.focus();
		return false;
	}else{
		document.frmsearch.submit();	
	}
}
</script>
<style type="text/css">
.top-search select.option_drop {
    float: left;
    margin: 2px 0 0 4px;
    width: 20%;
}
</style>
            
   <form class="form-search" action="<?php echo W_ROOT;?>/search.php" name="frmsearch" onsubmit="return checksSearch();" >
       <div class="s_body_b">         
        <select name="incategory" style="" class="option_drop">
                <option value=""><!--Options--><?php echo $lang['SIDEBAR_OPTION'];?></option>
                 <?php
 build_tree_drop($parent_id=0,$level=0);
 ?>
        </select>
          <div class="s_body">
            <input type="text" name="txtsearch" />
          </div>
        </div>   
        <div class="s_submit">
            <button class="postfix s_submit_b" type="submit"><div class="icon-search icon-white"></div></button>
        </div>
    </form> 
    <div class="clear"></div>
